how to find number of valence electrons